package ro.gii.auctionHouse.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

@Configuration
@ImportResource({ "/WEB-INF/application-security.xml",
		"/WEB-INF/application-config.xml" })
@ComponentScan(basePackages = { "ro.gii.auctionHouse.dao",
		"ro.gii.auctionHouse.service", "ro.gii.auctionHouse.security",
		"ro.gii.auctionHouse.web" })
@PropertySource("classpath:settings.properties")
public class GeneralSpringConfig {

	/**
	 * Register the PropertySourcesPlaceholderConfigurer.
	 * 
	 * @return PropertySourcesPlaceholderConfigurer instance
	 */
	@Bean
	public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
		return new PropertySourcesPlaceholderConfigurer();
	}

}